# 1.导入 selenium
from selenium import webdriver

# 2.创建浏览器操作对象
path = 'chromedriver.exe'

browser = webdriver.Chrome(path)

# 3.访问网站

# url = 'https://www.baidu.com'
# browser.get(url)

url = 'https://www.jd.com'
browser.get(url)

# page_source 获取网页源码
print(browser.page_source)


